package com.example.pestival11;



import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;
import android.support.v4.app.NavUtils;

public class pestival0 extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.pes0);
       
    }
    
    public void mOnClick(View v)
    {
    	switch(v.getId())
    	{
    	case R.id.button5: //ok
    		//Toast.makeText(MainActivity.this, "ok", Toast.LENGTH_SHORT).show();
    		Intent i = new Intent(pestival0.this,pestival8.class);
    		startActivity(i);
    		break;
    	case R.id.button1: //today
    		Toast.makeText(pestival0.this, "today", Toast.LENGTH_SHORT).show();
    		Intent k = new Intent(pestival0.this,pestival1.class);
    		startActivity(k);
    		break;
    	case R.id.button2: //month
    		Toast.makeText(pestival0.this, "month", Toast.LENGTH_SHORT).show();
    		Intent y = new Intent(pestival0.this,pestival2.class);
    		startActivity(y);
    		break;
    	case R.id.button3: //location
    		Toast.makeText(pestival0.this, "location", Toast.LENGTH_SHORT).show();
    		Intent e = new Intent(pestival0.this,pestival3.class);
    		startActivity(e);
    		break;
    	case R.id.button4: //broad
    		Toast.makeText(pestival0.this, "broad", Toast.LENGTH_SHORT).show();
    		Intent h = new Intent(pestival0.this,pestival4.class);
    		startActivity(h);
    		break;
    	}
    }
	
}
